home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / USB / Mac OS USB DDK v1.2 / Examples / USBSampleStorageDriver / USBSampleStorageDriver.make < prev    next >
Encoding:
Text File  |  1999-04-15  |  3.2 KB  |  128 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        USBSampleStorageDriver.make
  3. #
  4. #    Contains:    A sample USB Storage Class driver
  5. #
  6. #    Version:        1.1
  7. #
  8. #    Copyright:    © 1998-1999 by Apple Computer, Inc., all rights reserved.
  9. #
  10. MAKEFILE     = USBSampleStorageDriver.make
  11. •MondoBuild• = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
  12.  
  13. #
  14. #    symbol options
  15. #
  16. Sym•PPC      =  -sym full
  17.  
  18. #
  19. #    objects directory
  20. #
  21. ObjDir•PPC   = :::Objects:
  22.  
  23. #
  24. #    Targets directory
  25. #
  26. TargetDir     = :::Targets:
  27.  
  28. #
  29. # Headers and Libraries directory
  30. #
  31. LibrariesDir = :::Libraries:
  32.  
  33. #
  34. # Sample Drivers Shared Headers directory
  35. #
  36. SharedHeadersDir = :
  37.  
  38. #
  39. #    compiler options
  40. #
  41. PPCCOptions  = {Sym•PPC} -d DEBUG=0 -align mac68k -i {SharedHeadersDir}
  42.         
  43. #
  44. #    PPC objects
  45. #
  46. Objects•PPC  =                                                                ∂
  47.         "{ObjDir•PPC}SampleStorageDriver.c.x"                        ∂
  48.         "{ObjDir•PPC}SampleStorageDriverAPI.c.x"                    ∂
  49.         "{ObjDir•PPC}SampleStorageHeader.c.x"
  50.  
  51.  
  52. #
  53. #    Build Target
  54. #
  55. StorageDriverTarget    = {TargetDir}USBSampleStorageDriver
  56.         
  57.         
  58. USBSampleStorageDriver ƒƒ {StorageDriverTarget}
  59.  
  60.  
  61. #
  62. #    Build Resource fork of the driver
  63. #
  64. {StorageDriverTarget}    ƒƒ    ∂
  65.                         "{SharedHeadersDir}SampleStorageVersion.h"    ∂
  66.                         "SampleStorageDriver.r"                            ∂
  67.                         {•MondoBuild•}
  68.     Rez                                                                        ∂
  69.         -i "{RIncludes}"                                                    ∂
  70.         -i "{SharedHeadersDir}"                                            ∂
  71.         "{RIncludes}MacTypes.r"                                                ∂
  72.         "SampleStorageDriver.r"                                            ∂
  73.         -a                                                                        ∂
  74.         -o {Targ}
  75.  
  76. #
  77. #    Storage class driver is compiled with PPC compiler
  78. #        and added into the USBSampleStorageDriver file
  79. #
  80. {StorageDriverTarget} ƒƒ                                                 ∂
  81.                 {•MondoBuild•}                                             ∂
  82.                 {Objects•PPC}                                                ∂
  83.                 "SampleStorageDriver.exp"
  84.     PPCLink                                                                     ∂
  85.      -SYM big                                                                ∂
  86.      -map "{ObjDir•PPC}USBSampleStorageDriver.map    "            ∂
  87.         -t 'ndrv'                                                            ∂
  88.         -c 'usbd'                                                            ∂
  89.         -o {StorageDriverTarget} {Sym•PPC}                            ∂
  90.         {Objects•PPC}                                                         ∂
  91.         -xm sharedlibrary                                                    ∂
  92.         -share context                                                        ∂
  93.         -@export "SampleStorageDriver.exp"                            ∂
  94.         "{LibrariesDir}USBServicesLib"                                 ∂
  95.         "{SharedLibraries}InterfaceLib"                                 ∂
  96.         "{SharedLibraries}NameRegistryLib"                            ∂
  97.         "{SharedLibraries}DriverLoaderLib"                            ∂
  98.         "{SharedLibraries}DriverServicesLib"                         ∂
  99.         "{SharedLibraries}PCILib"                                        ∂
  100.         "{SharedLibraries}StdCLib"                                        ∂
  101.         "{PPCLibraries}PPCCRuntime.o"
  102.  
  103. #
  104. #    Storage class driver
  105. #
  106. "{ObjDir•PPC}SampleStorageDriver.c.x" ƒ            {•MondoBuild•}                                    ∂
  107.                                                             "SampleStorageDriver.c"                         ∂
  108.                                                             "{LibrariesDir}USB.h"                            ∂
  109.                                                             "SampleStorageDriver.h"
  110.     {PPCC} SampleStorageDriver.c -o {Targ} {PPCCOptions}
  111.  
  112. "{ObjDir•PPC}SampleStorageDriverAPI.c.x" ƒ        {•MondoBuild•}                                    ∂
  113.                                                             SampleStorageDriverAPI.c                         ∂
  114.                                                             "{LibrariesDir}USB.h"                            ∂
  115.                                                    "{SharedHeadersDir}SampleStorageDriverAPI.h"
  116.     {PPCC} SampleStorageDriverAPI.c -o {Targ} {PPCCOptions}
  117.  
  118. #
  119. #    Storage class driver USB interfaces
  120. #
  121. "{ObjDir•PPC}SampleStorageHeader.c.x" ƒ        {•MondoBuild•}                                        ∂
  122.                                                             SampleStorageHeader.c                             ∂
  123.                                                              "{LibrariesDir}USB.h"                            ∂
  124.                                                  "SampleStorageDriver.h"
  125.     {PPCC} SampleStorageHeader.c -o {Targ} {PPCCOptions}
  126.  
  127. # eof
  128.